<?php
namespace Home\Controller;
use Think\Controller;
class ShoppingController extends ChearkController {
    //购物车
    public function index(){
        $id = session('id');
        $where['informatio_id'] = $id;
        $where['zhuangtai'] = "未付款";
        $this->name =M('purchase')->join('shop on shopsid=shop.idit')->where($where)->order('f_time desc')->select();
        $this->display();
    }
}